package edu.gyc.hiwxm.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import edu.gyc.hiwxm.myenum.BookingStatusEnum;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ls
 * @since 2020-01-01
 */
@Data
public class Booking implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "Id", type = IdType.AUTO)
    private Integer Id;

    private Integer girlId;

    @TableField(exist = false)
    private String girlName;

    @TableField(exist = false)
    private String userName;
    private Integer userId;

    private Integer bookingPrice;

    /**
     * 0 可预约 1已预约
     */
    private Integer status;

    public String  getBookingStatusZh() {
        String msg = "";
        if (status == 0) {
            msg = "可预约";
        }else{
            msg = "已预约";
        }
        return msg;
    }

    private String workTime;

    private String timeFrame;


    public Integer getId() {
        return Id;
    }

    public void setId(Integer Id) {
        this.Id = Id;
    }

    public Integer getGirlId() {
        return girlId;
    }

    public void setGirlId(Integer girlId) {
        this.girlId = girlId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getBookingPrice() {
        return bookingPrice;
    }

    public void setBookingPrice(Integer bookingPrice) {
        this.bookingPrice = bookingPrice;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getWorkTime() {
        return workTime;
    }

    public void setWorkTime(String workTime) {
        this.workTime = workTime;
    }

    public String getTimeFrame() {
        return timeFrame;
    }

    public void setTimeFrame(String timeFrame) {
        this.timeFrame = timeFrame;
    }

    @Override
    public String toString() {
        return "Booking{" +
        "Id=" + Id +
        ", girlId=" + girlId +
        ", userId=" + userId +
        ", bookingPrice=" + bookingPrice +
        ", status=" + status +
        ", workTime=" + workTime +
        ", timeFrame=" + timeFrame +
        "}";
    }
}
